import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner num = new Scanner(System.in);
        while(num.hasNextInt()){
            int length = num.nextInt();
            int width = num.nextInt();
            int height = num.nextInt();
            Cube c = new Cube();
            c.setLength(length);
            c.setWidth(width);
            c.setHeight(height);
            System.out.println(c.getLength() + " "
                    + c.getWidth() + " "
                    + c.getHeight()+" "
                    +c.getArea()+" "
                    +c.getVolume());
        }
    }
}
